package com.example.model.article.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "Collections", description = "APP收藏信息表")
public class Collections {
    @TableId(type = IdType.AUTO)
    private Long collectionId;

    @Schema(description = "实体ID")
    private Integer entryId;

    @Schema(description = "文章ID")
    private Long articleId;

    @Schema(description = "点赞内容类型 0文章 1动态")
    private Integer collectionType;

    @Schema(description = "创建时间")
    private Date collectionTime;

    @Schema(description = "发布时间")
    private Date publishedTime;
}
